package org.javaopenaccess.model;

import java.util.Map;

/**
 * Objects of this class represent the metadata
 * of the dynamicly created classes.
 * @author Miku
 *
 */
public class ClassMetadata {

	private String name;
	//FIXME: This cannot be a Map, maybe split into two arrays?
	private Map<String,String> attributes;
	//Db4o cannot store classes so this attribute is transient
	private Class<?> javaClass;


	public ClassMetadata(String name) {
		this.name = name;
	}
	
	public ClassMetadata(Map<String, String> attributes, String name,
			Schema schema) {
		super();
		this.attributes = attributes;
		this.name = name;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Map<String,String> getAttributes() {
		return attributes;
	}
	public void setAttributes(Map<String,String> attributes) {
		this.attributes = attributes;
	}
	
	public Class<?> getJavaClass() {
		return javaClass;
	}

	public void setJavaClass(Class<?> javaClass) {
		this.javaClass = javaClass;
	}
}
